package com.qf.controller;

import com.qf.pojo.req.ReqDrug;
import com.qf.pojo.req.ReqDrugOrder;
import com.qf.pojo.resp.Resultmsg;
import com.qf.service.DrugOrderService;
import io.swagger.annotations.SwaggerDefinition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName DrugBuyController
 * @Description
 * @Author lanzhike
 * @Date 2023/8/14/0014 下午 07:55
 * @Version 1.0
 */
@SwaggerDefinition
@RestController
@RequestMapping("/drugBuy")
public class DrugOrderController {
    @Autowired
    DrugOrderService drugOrderService;

    @RequestMapping("/addDrugOrder")
    public Resultmsg addDrugOrder(@RequestBody ReqDrugOrder drugOrder, HttpServletRequest request){
        return drugOrderService.addDrugOrder(drugOrder,request);
    }
}
